import { View, Button } from "@tarojs/components";
import todoStore from "../store/todo";

function Hello() {
  return (
    <View>
      <View>Hello</View>
      <Button onClick={() => todoStore.addTodo("喝水")}>点我</Button>
      {todoStore.list.map((item) => (
        <View key={item.id}>{item.text}</View>
      ))}
    </View>
  );
}

export default Hello;
